package com.xiaohai.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaohai.projo.Score;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaohai.projo.dto.ScoreDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xiaohai
 * @since 2024-02-24
 */
@Mapper
public interface ScoreMapper extends BaseMapper<Score> {

    Page<ScoreDto> list(Page<Score> page, String studentName, String teacherName, String courseName, String name);

    ScoreDto getById(String id);

    Page<ScoreDto> listbyStu(Page<Score> page, String name, String teacherName, String courseName, String account);

    Page<ScoreDto> listbyTea(Page<Score> page, String name, String studentName, String courseName, String account);

    List<String> getNameList();

    List<ScoreDto> exportList();

    List<ScoreDto> exportListByStu(String account);

    List<ScoreDto> exportListByTea(String account);
}
